//  int discount (int inputVal, int quantity, int yearToDate) {
//        if (inputVal > 50) inputVal -= 2;
//
// void aMethod(Object foo) {
//    foo.modifyInSomeWay();           // that's OK
//    foo = anotherObject;             // trouble and despair will follow you

int discount (int inputVal, int quantity, int yearToDate) 
{
    if (inputVal > 50) inputVal -= 2;
    if (quantity > 100) inputVal -= 1;
    if (yearToDate > 10000) inputVal -= 4;
    return inputVal;
}

